﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using XCommunity.Caching;

namespace XCommunity.Forums.Extension
{
  internal class PostExtMetaCache : CacheContainer
  {


    private ForumsViewPlugin _plugin;

    public PostExtMetaCache( ForumsViewPlugin plugin )
    {
      _plugin = plugin;
    }


    public ForumsViewPlugin PluginInstance
    {
      get { return _plugin; }
    }



    public PostExtMeta GetOrLoad( Guid postId )
    {
      return GetOrLoadValue( postId, id => (PostExtMeta) null );
    }


  }
}
